package com.devops.admin.event;

import com.devops.admin.model.DOSProjectVersion;
import com.devops.constant.ProjectVersionPhaseEnum;
import com.devops.shiro.vm.BaseUserVM;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author jxt
 * @Notes
 * @date 2023/3/16 9:43
 */
@Getter
public class ProjectVersionPhaseChangeEvent extends ApplicationEvent {
    private final DOSProjectVersion dosProjectVersion;
    private final BaseUserVM currentUser;

    public ProjectVersionPhaseChangeEvent(Object source, DOSProjectVersion dosProjectVersion, BaseUserVM currentUser) {
        super(source);
        this.dosProjectVersion = dosProjectVersion;
        this.currentUser = currentUser;
    }
}
